﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ServiceGuestfwz.aspx.cs" Inherits="Services_ServiceGuest" %>
<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/changerows.js"></script>
    <script type="text/javascript" src="../js/rl.js"></script>

    <script type="text/javascript">
  
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }
    function backcolor()
    { 
      var color="#ffba00";
       document.getElementById("HFCOLOR").value=color;
       alert(document.getElementById("HFCOLOR").value);
    }
    function PrintData(id)
    {
        if(id!="")
        {
  
            window.open("DrawPrint.aspx?id="+id,"","width=800px,height=650px,left=100px,top=30px,scrollbars=yes");
            return false;
        }
        return false;
    }
//    function showdivByCs(lyyybz){

////    table=table.replace("&amp;","&");
////    table=table.replace("&gt;",">");
////    table=table.replace("&lt;","<");
////    table=table.replace("&quot;",""");
////    table=table.replace("&apos;","'");
//var lyyybz=lyyybz;
//var x = window.event.x;
//var y = window.event.y;
//var show = document.getElementById("ShowInfo");
//show.style.visibility = "visible";
//show.style.top = y;
//show.style.left = x;
//show.style.background="#ffff00";

////读取xml
//  document.getElementById("sp").innerText=lyyybz;

////div跟随鼠标
//document.getElementById("ShowInfo").onmousemove = moveToMouseLoc;

//}

////鼠标移动时候div跟随
//function moveToMouseLoc(e)
//{
//    x = window.event.x;
//    y = window.event.y;
//  var show = document.getElementById("ShowInfo");
//  show.style.left = x;
//  show.style.top = y;
//  return true;
//}
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td height="22">
                    <img src="../images/module.gif" width="20" height="22" alt=""/>
                    <asp:Label ID="lblPath" runat="server" height="22"></asp:Label></td>
                </tr>
                <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
                <tr>
                <td width="1000" align="right">
                    <img src="../images/search.gif" alt="搜索" width="16" height="16" />客户名称：<asp:TextBox ID="txtGuest" runat="server" CssClass="input1" Width="70px"></asp:TextBox>联系电话：<asp:TextBox
                            ID="txttel" runat="server" CssClass="input1" Width="70px"></asp:TextBox>地址：<asp:TextBox ID="txtSalesCode" runat="server" CssClass="input1" Width="70px"></asp:TextBox>型号：<asp:TextBox
                            ID="txtmol" runat="server" CssClass="input1" Width="70px"></asp:TextBox>序列号1：<asp:TextBox ID="txtKdate" runat="server" CssClass="input1" Width="70px" MaxLength="10"></asp:TextBox>序列号1：<asp:TextBox
                        ID="txtJdate" runat="server" CssClass="input1" Width="70px" MaxLength="10"></asp:TextBox>服务措施：<asp:TextBox ID="txtfwcs" runat="server" CssClass="input1" Width="70px"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="1px">
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr style="height:25px;">
                <td style="text-align: center; ">
                    <asp:LinkButton ID="likadd" runat="server" OnClick="likadd_Click">添加维修单</asp:LinkButton></td>
                <td style="text-align: center;">
                    <asp:LinkButton ID="likypd" runat="server" OnClick="likypd_Click">销售派单</asp:LinkButton></td>
                <td style="text-align: center;">
                    <asp:LinkButton ID="likyjsd" runat="server" OnClick="likyjsd_Click">已接受单</asp:LinkButton></td>
                <td style="text-align: center;background-color:#ECF9FC;">
                    <asp:LinkButton ID="likfwz" runat="server" OnClick="likfwz_Click">服务中</asp:LinkButton>
                </td>
                <td style="text-align: center">
                    &nbsp;<asp:LinkButton ID="likyjd" runat="server" OnClick="likyjd_Click">已结单</asp:LinkButton></td>
                <td style="text-align: center">
                    <asp:LinkButton ID="likall" runat="server" OnClick="likall_Click">全部</asp:LinkButton>
                </td>
                <td style="text-align: center">当前记录数
                    <asp:Label ID="lbljl" runat="server" Text="Label"></asp:Label></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="1px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" OnRowDataBound="GvData_RowDataBound" EmptyDataText="没有数据" >
             <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField HeaderText="业务编号" DataField="MaintCode">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:TemplateField HeaderText="客户名称">
                    <ItemTemplate>
                            <asp:LinkButton ID="Guestname" Text='<%# Bind("Guestname") %>'  CommandArgument='<%#Eval("Maintaddid") %>'
                            runat="server" OnClick="linkedit_Click">报修</asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                
                <asp:BoundField HeaderText="联系人" DataField="Guestmen">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="联系电话" DataField="Guesttel">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="客户地址" DataField="Guestaddress">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:BoundField HeaderText="类型" DataField="comitype">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="品牌" DataField="comidband">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="型号" DataField="comidSpe">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="接修日期" DataField="Date2">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="保修方式" DataField="bxfs">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:BoundField HeaderText="接修方式" DataField="jxfs">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="遗留原因">
                    <ItemTemplate>
                            <asp:Label ID="lblylyy" Text='<%# Bind("ylyy") %>'  title='<%#Eval("ylyybz") %>'   CommandArgument='<%#Eval("Maintaddid") %>'   runat="server"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                            <asp:LinkButton ID="linkbtnSales"  CommandArgument='<%#Eval("Maintaddid") %>'
                            runat="server" OnClick="linkedit_Click" ForeColor="Red">查看</asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table align="center" width="99%">
            <tr>
                <td>
                    <uc1:PageNavigator ID="PageNavigator1" ConnectionString="connstr" DataId="GvData"
                        ShowType="Text" PageSize="20" runat="server" />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="HidWareid" runat="server" />
        &nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:HiddenField ID="HFCOLOR" runat="server" />
    </form>
</body>
</html>
   <script type="text/javascript">
  //senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
//    senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
    </script>
    